package com.bonana.core.form;

import com.bonana.core.entity.mybatis.Banner;
import org.springframework.web.multipart.MultipartFile;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2016/7/4.
 */
public class BannerForm {
    public Banner toBannerModel() {
        Banner saveB = new Banner();
        saveB.setBannerId(getBannerId());
        saveB.setBannerTitle(getBannerTitle());
        saveB.setBannerDesc(getBannerDesc());
        saveB.setBannerLoc(getBannerLoc());
        saveB.setBannerStarttime(getBannerStarttime());
        saveB.setBannerEndtime(getBannerEndtime());
        saveB.setBannerTarget(getBannerTarget());
        return saveB;
    }

    public Integer getBannerId() {
        return bannerId;
    }

    public void setBannerId(Integer bannerId) {
        this.bannerId = bannerId;
    }

    public String getBannerTitle() {
        return bannerTitle;
    }

    public void setBannerTitle(String bannerTitle) {
        this.bannerTitle = bannerTitle;
    }

    public String getBannerDesc() {
        return bannerDesc;
    }

    public void setBannerDesc(String bannerDesc) {
        this.bannerDesc = bannerDesc;
    }

    public Integer getBannerLoc() {
        return bannerLoc;
    }

    public void setBannerLoc(Integer bannerLoc) {
        this.bannerLoc = bannerLoc;
    }

    public Timestamp getBannerStarttime() {
        return bannerStarttime;
    }

    public void setBannerStarttime(Timestamp bannerStarttime) {
        this.bannerStarttime = bannerStarttime;
    }

    public Timestamp getBannerEndtime() {
        return bannerEndtime;
    }

    public void setBannerEndtime(Timestamp bannerEndtime) {
        this.bannerEndtime = bannerEndtime;
    }

 /*   public MultipartFile getBannerFile() {
        return bannerFile;
    }

    public void setBannerFile(MultipartFile bannerFile) {
        this.bannerFile = bannerFile;
    }*/

    public String getBannerTarget() {
        return bannerTarget;
    }

    public void setBannerTarget(String bannerTarget) {
        this.bannerTarget = bannerTarget;
    }

    private Integer bannerId;
    private Integer bannerLoc;
    private String bannerTitle;
    private String bannerDesc;
    private String bannerTarget;
    private Timestamp bannerStarttime;
    private Timestamp bannerEndtime;
    //private MultipartFile bannerFile;

}
